package com.tecode.gmail.conf;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * Created by Administrator on 2019/2/13.
 */
@Configuration
public class SpringMVCConf  extends WebMvcConfigurerAdapter {
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/").setViewName("forward:/product/index.html");
        registry.addViewController("/index.html").setViewName("forward:/product/index.html");
        super.addViewControllers(registry);
    }



}
